<?php

namespace app\api\model;

use think\Model;

class Role extends Model
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    
    public function auth()
    {
        return $this->belongsToMany('auth', 'role_auth', 'auth_id', 'role_id');
    }
}
